package com.onix.scalecamerapreview.translate;

import java.util.List;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;

import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Query;

 public interface Request {
     String baseUrl = "https://api.cognitive.microsofttranslator.com/";
     //https://api.cognitive.microsofttranslator.com/languages?api-version=3.0
    @POST("translate?api-version=3.0")
    Observable<List<TranslateResult>> translate(@Query("to") String toLanguage, @Body List<Textbean> textbeans);

    @GET("languages?api-version=3.0&scope=translation")
    Observable<Language> getSupportLanguages();

}
